Scoring server

ABSTRACT

A scoring server for assessing technical skills in a practical environment. A client application acts as a middle man between a terminal and an operating system to capture and forward all input from and output to students to the scoring server. The scoring server compares recorded student activity against a list of tasks deemed capable of accomplishing course objectives assigned to students. As objectives are met by a student, the students&#39; grade is updated in real-time. Each student passes or fails an exam based on tasks performed and skills employed. The client application exists for two operating system types: WINDOWS® and LINUX®. A LINUX® client employs a pseudoterminal to permit access to terminal input/output and communication through stdin, stdout, and stderr channels. A WINDOWS® client (WC) comprises a WC command line activity logger and a WC monitor process to intercept all communication through stdin, stdout, and stderr communication channels.

The present invention claims priority from U.S. Provisional No. 61/829,708, filed May 31, 2013, entitled “Scoring Server”; and from U.S. Provisional No. 61/803,986, filed Mar. 21, 2013, entitled “Scorebot”, the entirety of both of which are expressly incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates generally to telecommunications, and more particularly to cyber security and operations training.

2. Background of Related Art

Unlike typical academic training, a large part of cyber security and operations training involves practical application of concepts and techniques. However, there currently exists no recognized mechanism for assessing student technical skills in a practical environment. Consequently, most technical training courses administer knowledge exams to evaluate student skill sets.

Most attempts to assess student skills in a practical application environment center around Capture the Flag (CTF) competitions. A conventional Capture the Flag (CTF) competition tracks activity of persons (or teams) attempting a given objective against other persons (or teams) attempting the same objective. For example, if a goal of a Capture The Flag (CTF) competition is to maintain an active web server, the Capture The Flag (CTF) system periodically checks to ensure student web servers are functional. Competing students/teams may attempt to bring other students'/teams' web servers down to prevent those students/teams from earning points. If a students'/teams' web server is brought down, it is up to that student/team to get their service up and running again

Unfortunately, Capture the Flag (CTF) competitions do not include skill evaluation capabilities. For instance, CyberNEXS™ is an exemplary Capture the Flag (CTF) product (commercially manufactured by SAIC) devoid of training/skill evaluation capabilities. Hence, in a Capture the Flag (CTF) competition with a goal of maintaining an active web server, the Capture the Flag (CTF) system only checks to ensure web servers are running. The Capture the Flag (CTF) system has no way of assessing how quickly a problem is identified or how efficiently a problem is solved.

While Capture the Flag (CTF) competitions are fun, they do not identify strengths and weaknesses of students, nor do they assess skills toward a standard. The training industry is in dire need of a mechanism that can assess actual skills in a practical environment.

SUMMARY OF THE INVENTION

A method and apparatus for assessing technical skills in a practical environment comprises a scoring server (aka a PerformanScore).

In accordance with the principles of the present invention, a client application acts as a middle man between a terminal and an operating system to successfully capture all input from and output to a student undergoing evaluation in a practical training environment. The client application then transmits all recorded student activity to the scoring server, which uses the recorded student activity to assess student technical skills in a practical environment.

In accordance with the principles of the present invention, each student undergoing evaluation in a practical training environment is assigned one or more course objectives. To assess a student's performance, the scoring server compares all activity recorded for the student against a list of tasks capable of accomplishing course objectives assigned to the student. If a command performed by a student meets a task deemed capable of accomplishing an objective assigned to that student, the objective is marked as complete. As objectives are met by students, grades are updated in real-time.

When a student completes a practical exam, the scoring server generates a report for the student that outlines all objectives met, all objectives missed, and a comprehensive final score. Students either pass or fail exams based on tasks performed and skills employed, as opposed to simply knowledge memorized.

In accordance with the principles of the present invention, client applications exist for two operating system types: windows and LINUX®®. A client (WC) application comprises two individual components: a WINDOWS® client (WC) command line activity (CLA) logger and a WINDOWS® client (WC) monitor process. The WINDOWS® client (WC) intercepts all communication through standard in, standard out, and standard error communication channels of machines used to evaluate student performance.

Alternatively, a LINUX® client application comprises a pseudoterminal to permit access to terminal input/output and communication through standard in, standard out, and standard error channels of machines used to evaluate student performance. Moreover, the inventive LINUX® client implements a well-known system-hooking tactic (libhook.so) to ascertain commands executed on machines and transparently retrieves command responses by creating a second pseudoterminal and linking the second pseudoterminal to a primary user terminal.

To attribute commands issued on target machines in a practical training environment to individual students, a WINDOWS®/LINUX® client application sends all commands issued on target machines to the scoring server, along with a command process ID, a timestamp, host name, network statistics (netstat), and a process list associated with the machine the command was executed on. Using information received in a netstat and process list, the scoring server back traces to find an originating IP address for a command, and then matches the IP address to a student ID.

BRIEF DESCRIPTION OF THE DRAWINGS

Features and advantages of the present invention will become apparent to those skilled in the art from the following description with reference to the drawings, in which:

FIG. 1 depicts an exemplary scoring server network structure, in accordance with the principles of the present invention.

FIG. 2 shows a schema of an exemplary scoring server, in accordance with the principles of the present invention.

FIGS. 3 and 4 show an exemplary LINUX® client application of a scoring server, in accordance with the principles of the present invention.

FIG. 5 shows exemplary scoring server data flow for a LINUX® Client, in accordance with the principles of the present invention.

FIG. 6 show an exemplary unauthenticated networked command line activity scenario, in accordance with the principles of the present invention.

FIG. 7 shows an exemplary single host (WINDOWS® client), in accordance with the principles of the present invention.

FIG. 8 shows an exemplary WINDOWS® client (WC) monitor process, in accordance with the principles of the present invention.

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

The present invention provides a scoring server (aka a PerformanScore) to assess student technical skills in a practical environment.

In accordance with the principles of the present invention, the inventive scoring server assesses student activity performed in a practical training environment against objectives related to student training.

Currently, there exists no mechanism capable of assessing student technical skills in a practical environment. For instance, in an exemplary course in penetration testing, students are required to perform the following tasks: conduct an external reconnaissance of a network, port scan the network to find operational hosts, identify applications running on hosts, identify vulnerabilities within applications, exploit application vulnerabilities to gain access to hosts, and conduct a reconnaissance of the system and internal network to identify important information. Unfortunately, traditional training courses are incapable of grading a student's ability to do such tasks and instead simply test students' knowledge of such tasks. Traditional training courses thus promote data memorization and do not necessarily produce students capable of performing job functions.

The present invention scores students not only based on what they know, but also based on what they do.

FIG. 1 depicts an exemplary scoring server network structure, in accordance with the principles of the present invention.

In accordance with the principles of the present invention, the inventive scoring server 100 utilizes a client application 110 to capture all student activity performed during practical application exercises and exams. The client application 110 acts as a middleman between a terminal and an operating system to successfully capture all input from and output to a student. The inventive client application 110 then sends all recorded student activity to the scoring server 100 (located elsewhere on a system/network) and the scoring server 100 uses recorded student activity to assess student performance. For example, a client application 110 captures all commands (e.g. commands to initiate a port scan of a network) performed by a student in a practical training environment and passes recorded commands and relevant command information (e.g., command, student, host, etc.) to the scoring server 100. The scoring server 100 then uses the recorded commands and relevant command information to evaluate the student's performance.

The inventive scoring server (aka PerformanScore) 100 preferably comprises an apache web server with PHP and a MySql scoring server database 112 to store and maintain student data, course data, and recorded student activity.

Course and student information is preferably uploaded to the scoring server 100 via a scoring server web interface 114, as depicted in FIG. 1. In particular, the following course information is preferably stored in the scoring server 100: course name, course description, associated rubric(s). Moreover, the following student information is preferably stored in the scoring server 100: first name, last name, IP addresses, assigned team, commands issued on machines.

FIG. 2 shows an exemplary database schema for a scoring server, in accordance with the principles of the present invention.

In particular, as portrayed in FIG. 2, students are preferably assigned IP addresses 200 of machines and/or virtual machines they will be using during performance evaluation, to enable student commands 224 to be linked back to IP addresses 200. Students can also be assigned to teams 210, for which evaluation and scoring may be performed on a team or student basis. Student records are preferably organized in the scoring server database 112 according to course 212.

Each course 212 in the inventive scoring server 100 system has an associated rubric 214 for scoring and grading students 216. A course rubric 214 preferably details specific objectives 218 students 216 are expected to complete and each objective 218 is assigned a point value used to determine a student's 216 score. Each objective 218 additionally includes a task list 220, which comprises tasks deemed capable of achieving that objective 218. Tasks 220 are entered as a regular expression.

In accordance with the principles of the present invention, to assess a student's performance during a practical exam/training exercise, the scoring server 100 compares actions performed by the student (and recorded by a client application 110) against a list of tasks 220 deemed capable of accomplishing course objectives 218 assigned to that student (a list of tasks 220 is utilized to account for the many different ways in which a particular assignment may be accomplished). If a command 224 performed by a student meets a task 220 deemed capable of accomplishing one or more course objectives 218 assigned to that student (e.g., correct IP range, options, etc.), the scoring server 100 marks the objective(s) 218 as complete 222 and the student's grade is updated in real-time. It is possible for a student to complete multiple objectives 218 with one command 224 as long as the command 224 matches a task listed in each objective's 218 task list 220. For each objective 218: sections, modules, or content associated with the objective 218 can be uploaded to the scoring server 100 to aid student remediation.

A course administrator can review all commands 224 executed by students 216 via a scoring server web interface 114. If at any time an administrator feels that a command 224 that failed to deem an objective 218 complete does in fact complete the objective 218, the administrator can mark the objective 218 as complete 222 and list the command 224 in a task list 220 associated with the objective 118.

The scoring server web interface 114 also provides a course administrator the ability to view the commands executed by the students in realtime.

When a student completes a practical exam/exercise, the scoring server 100 generates a report for the student that outlines all objectives 218 met 222, all objectives 218 missed, and a comprehensive final score.

The inventive scoring server 100 additionally compiles command reports per class, student, and team. Commands in a command report are listed in chronological order and each command identifies a host machine on which the command was executed and initiated. A command report for a student/team also displays a comprehensive final score compiled for that student/team. A team command report depicts which students on a team completed which tasks. A report may also be generated to show what parts of training a student should review based on course objectives left incomplete.

Students either pass or fail exams based on tasks they performed and skills they employed, rather than simply knowledge they memorized.

In accordance with the principles of the present invention, client applications 110 exist for two operating system types: WINDOWS® and LINUX®. The WINDOWS® client application intercepts communication on standard in, standard error, and standard out channels of machines used in a practical training environment. The WINDOWS® client application forwards all data flowing from a student to a system and all data flowing from a system to a student to the scoring server 100 via a secure communications channel.

In addition to standard in, standard error, and standard out communication channels, LINUX® machines occasionally use added channels of communication. These added channels unfortunately negate the effectiveness of a simple standard in, standard out, and standard error communication capture.

Thus, to implement a client application 110 in a LINUX® or UNIX® setting, the present invention employs a pseudoterminal. A pseudoterminal for a LINUX® client allows communication through standard in, standard error, and standard out channels of machines used in a practical training environment, and additionally permits access to terminal input/output. Terminal input/output is used to pass terminal codes and secure terminal-to-terminal communication (typically passwords). In accordance with the principles of the present invention, the LINUX® client forwards all data flowing from a student to a system and all data flowing from a system to a student to the scoring server 100 via a secure communications channel. Both LINUX® and WINDOWS® client applications 110 send commands, responses, and other information relevant to performance evaluation to the scoring server 100 via a POST request.

In accordance with the principles of the present invention, the scoring server 100 stores commands and responses executed on multiple machines in a practical training environment, each machine running a client application 110 (e.g., a WINDOWS®/LINUX® client application). To attribute commands issued on target machines to individual students, a WINDOWS®/LINUX® client application 110 sends all commands issued on target machines to the scoring server 100, along with a command process ID, a timestamp, host name, network statistics (netstat), and a process list (ps) associated with the machine the command was executed on. Netstat information includes local IP addresses and ports, foreign IP addresses and ports, and process IDs. A process list (ps) contains process IDs and parent process IDs.

Upon receipt of a command and relevant command information, the scoring server 100 saves the command, command process ID, command parent process ID, host name, and time stamp to a commands table 224 in the scoring server database 112 and then saves netstat and process list (ps) information in an appropriate manner.

In particular, each line of a netstat is stored as an individual record in a netstat table 226 (see the database schema displayed in FIG. 2). Being that a netsat sent to the scoring server 100 by a client application 110 is a uniform resource locator (URL) encoded string, the scoring server 100 first decodes the string, and then parses the decoded string by row. The scoring server 100 parses data maintained in each row of a netstat into proper columns and then writes the information to a database 112. To link associated netstat rows together, the server 100 writes an associated command process ID, host name, and timestamp on each row. The scoring server 100 stores the process list using the same process (in a process list (ps) table 228.

Using information received in a netstat and process list (ps), the scoring server 100 back traces to find an originating IP address for a command, and then matches the IP address to a student ID (see CLA attribution/initiation in windowsclient.odt). The scoring server 100 then updates the command record 224 with the student ID to attribute the command to the student. In particular, the client application 110 preferably sends a response and attaches an original command process ID, host name, and timestamp associated with the command to the response. The response is then used to update the command record 224 with student information.

FIGS. 3 and 4 show an exemplary LINUX® client application for a scoring server, in accordance with the principles of the present invention.

FIG. 5 shows exemplary scoring server data flow for a LINUX® client, in accordance with the principles of the present invention.

In particular, as depicted in FIGS. 3-5, the purpose of a scoring server 100 LINUX® client is to provide the scoring server 100 with local command line activity (CLA) and to permit the scoring server 100 to attribute local activity to a remote student.

The scoring server 100 LINUX® client utilizes multiple approaches that work in tandem to identify commands executed on a machine in a practical training environment, computer responses, and who executed what.

In particular, to ascertain commands executed on a machine, the inventive LINUX® client implements a well-known system-hooking tactic (libhook.so) that places the client between a user and an operating system kernel. Using an LD_PRELOAD hooking technique targeting an execve system call, the LINUX® client intercepts any attempt to start a new executable file (the only way to launch a program legitimately in UNIX®). The placement of the client application 110 within the present invention allows interception of any command issued in a hooked terminal. The hooking approach can easily be expanded to intercept all actions, including actions performed via a graphical user interface (GUI).

To transparently retrieve command responses, the inventive LINUX® client creates a second pseudoterminal and links the second pseudoterminal to a primary user terminal. The terminal connection allows the LINUX® client to intercept all communication to and from a student's terminal. The terminal connection is also able to ascertain commands executed on a machine. However, the hooked system call method provides greater information, better attribution, and is scalable for future use within a graphical user interface (GUI).

Moreover, to attribute commands to individual students, the LINUX® client sends process and network information relevant to each command to the inventive scoring server 100. Since certain network and process information is privileged, this component runs as a service in the background. This service additionally functions as a communications hub to coordinate communication between LINUX® client application components and the scoring server 100.

In accordance with the principles of the present invention, when a student enters a command at a scoring server 100 prompt, keystrokes pass transparently to the secondary pseudoterminal of the LINUX® client. The pseudoterminal subsequently calls execve( ) providing the location of the binary to run, as well as any argument values specified by the student. The modified hooked call is then implemented, which takes and forwards data for execve( ) to the local administrative service server before handing the data to the actual execve( ) system call. The administrative service then immediately sends data relevant to the command to the scoring server 100, as it does not know when the command is going to end. The results of the binary come back to the pseudoterminal, and the pseudoterminal forwards the response data to the administrative service before passing the response data back to the main terminal seen by the user. The administrative service keeps reading data from the pseudoterminal until a notification for a new command is received, at which point the administrative service sends all response data for the previous command to the scoring server 100.

The inventive approach has evolved to include multiple release candidates. Some failed attempts at LINUX® clients include:

1) A simple redirection pipe that allows the LINUX® client to grab all data coming into a terminal on a standard input channel and all data leaving the terminal on a standard output channel. While this approach does meet many requirements, it fails for the following reasons:

-   -   i. Data appears in a stream so that it is difficult to determine         when a command starts and stops.     -   ii. UNIX® implements a security feature that prevents         interception of passwords at a terminal prompt. This security         feature bypasses the standard input channel and uses a         console-specific connection to send passwords to commands like         sudo and ssh. The simple redirection pipe fails to overcome the         UNIX® security feature, and is thus unable to forward passwords         to commands requiring authentication.

2) A single executable pseudoterminal that intercepts commands and responses and forwards them to the scoring server. This implementation fails because the pseudoterminal has trouble separating command response starts and stops and assumes a new command is launched every time a user selects an enter key (an assumption that is unreliable an prone to abuse).

3) A hooked library and a pseudoterminal (the first two components of the current solution). This implementation fails for the following reasons:

-   -   i. Command terminals used by students are not always root.     -   The implementation fails to• get process and network data and         cannot always open a communications channel to the scoring         server.     -   ii. Even when functioning properly, the implementation does not         support multiple terminal WINDOWS® for students.

The current implementation of a LINUX® client application supports communication and is capable of retrieving machine status, command, and response data from multiple users and multiple terminal WINDOWS®. The inventive LINUX® client tracks WINDOWS® independently and allows any number of students to work on the same machine. The inventive LINUX® client also reports all necessary information to the scoring server 100 to permit successful differentiation of commands.

Command line activity (CLA) is a conventional term that refers to user-initiated activity executed through a command line or shell. For example, starting a command line (cmd.exe) and running ipconfig.exe constitutes command line activity (CLA). Moreover, TelNet-ing into remote host, server.remotehost.com, and running ipconfig.exe constitutes command line activity (CLA) initiated from a user machine and executed on a remote machine (server.remotehost.com). This combines direct user input with effects and accomplishments.

In accordance with the principles of the present invention, the inventive WINDOWS® client (WC) comprises two individual components: a WINDOWS® client (WC) command line activity (CLA) logger and a WINDOWS® client (WC) monitor process.

The WINDOWS® client (WC) command line activity (CLA) logger is responsible for recording streams of command line activity (CLA) executed on a WINDOWS® machine and is not responsible for breaking up streams into individual commands. The WINDOWS® client (WC) monitor process asynchronously consumes output from the WINDOWS® client (WC) command line activity (CLA) logger as new process events are triggered.

The present invention aims to make WINDOWS® client (WC) command line activity (CLA) logger actions completely transparent to users. All disclosed embodiments involve instrumenting cmd.exe. The WINDOWS® client (WC) does not catch command line activity (CLA) streams on any other shells (e.g. cygwin).

The inventive WINDOWS® client (WC) is not a keystroke logger. A keystroke logger (KS) logs all keys that have been typed by a user onto a keyboard physically attached to a machine (e.g. stu1) and is only capable of identifying machines on which sessions have been initiated, not machines on which command line activity (CLA) is executed. However, it is essential to know what machine command line activity (CLA) is initiated on and what machine command line activity (CLA) is executed on to determine what students/users run what commands on what hosts.

FIG. 6 shows an exemplary unauthenticated networked command line activity (CLA) scenario, in accordance with the principles of the present invention.

As shown in FIG. 6, session 1 10 is initiated on server 500 and executed 10 on server 500; session 2 is initiated 12 a on stu2 510 and executed 12 b on server 500; session 3 is initiated 14 a on stu1 520 and executed 14 b on redir 530; and session 4 is initiated 16 a on stu1 520 and executed 16 b on server 500.

Since a keystroke logger (KS) is only able to identify machines on which sessions have been initiated, a keystroke (KS) logger on server 500 would only pick up information about session 1 10 and a keystroke logger (KS) on redir 530 would not pick up any information. Information retrieved by a keystroke logger (KS) on stu1 520 and stu2 510 would include commands initiated on redir 530 and server 500, but would not distinguish that they ran on redir 530 and server 500.

FIG. 7 shows an exemplary single host (WINDOWS® client), in accordance with the principles of the present invention.

As• portrayed in FIG. 7, by instrumenting a single host 700, the WINDOWS® client (WC) can retrieve all command line activity (CLA) 710 a, 710 b, 710 c executed on the host 700. The WINDOWS® client (WC) monitors all input and output of all instances of cmd.exe 720 a, 720 b, 720 c run on the host 700 to obtain distinct streams of command line activity (CLA) 710 a, 710 b, 710 c. By gathering distinct streams of command line activity (CLA) 710 a, 710 b, 710 c, a WINDOWS® client (WC) is able to determine which parts of a command line activity (CLA) stream 710 a, 710 b, 710 c are executed locally. For example, if a user SSH-es into another machine and then executes several cat commands remotely, the WINDOWS® client (WC) can see that the ssh command was executed locally and that the cat commands were executed remotely. The inventive WINDOWS® client (WC) also monitors process and network states to determine where command line activity (CLA) is initiated and executed.

In accordance with the principles of the present invention, the WINDOWS® client (WC) monitors process creation and ties command line activity (CLA) streams to process starts on machines in a practical training environment. Streams matched to process starts on a machine are known to be executed on that machine. The WINDOWS® client (WC) also gathers network information about ancestor processes to determine whether a command line activity (CLA) stream/process start was initiated locally or on a remote host.

In the following exemplary command line activity (CLA) stream, a user SSH-es into remote host, housefire:

D:\> ssh led242@housefire.cryptohaze.com ← new process start on   local host LINUX housefire.cryptohaze.com 2.6.32-41-generic #88-Ubuntu SMP Thu Mar 29 13:10:32 UTC 2012 x86 64 GNU/LINUX Ubuntu 10.04.4 LTS Welcome to Ubuntu!  * Documentation: https://help.ubuntu.com/ New release ‘precise’ available. Run ‘do-release-upgrade’ to upgrade to it. Last login: Sun Apr 21 16:01:09 2013 led242@housefire:~$ led242@housefire:~$ led242@housefire:~$ dir ← executed on housefire,   does not create new   process on local host CryptohazeGRT-LINUX-0.55.tar.bz2 cudatoolkit 3.2.16 LINUX 64 ubuntu10.04.run - - Desktop  devdriver- 3.2 - LINUX- 64 - 260.19.26.run deviceQuery.txt devices devices. txt devices. txt. save  Documents Downloads ev examples.desktop FileTransfer.dll?Cmd=1  FileTransfer.dll?Cmd=1.1 GetDownloadRequest?brand=TechNet gmvault gmvault-db led242@housefire:~$ cat nohup.out ← executed on housefire,   does not create new   process on local host cp: cannot create directory {grave over ( )}/media/pigc73/pigb72′: Permission denied cp: cannot create directory {grave over ( )}/media/pigc73/pigb72′: Permission denied cp: cannot access {grave over ( )}pigb72/lost+found′: Permission denied led242@housefire:~$

The entire exemplary command line activity (CLA) stream exemplified above is associated with a single ssh command performed on a local host. Dir and cat commands are executed remotely in the command line activity (CLA) stream and do not create new local processes. Thus, dir and cat commands are ignored by the local WINDOWS® client (WC) monitor process.

On the local host (on which the command line activity (CLA) is initiated) the entire command line activity (CLA) stream is perceived to be single command, ‘ssh’, executed on the local host.

The following depicts an exemplary command line activity (CLA) stream monitored from remote host, housefire, as a result of the previous command line activity (CLA) stream executed on the local host:

led242@housefire:~$ led242@housefire:~$ led242@housefire:~$ dir ← new process start, ‘dir’ has   executed here, collect   output CryptohazeGRT-LINUX-0. 55. tar.bz2 cudatoolkit 3.2.16 LINUX 64 ubuntu10.04.run - - Desktop  devdriver 3.2 LINUX 64 260.19.26.run deviceQuery.txt devices devices.txt devices. txt. save Documents Downloads ev examples.desktcp FileTransfer.dll?Cmd=1 FileTransfer.dll?Cmd=1.1 GetDownloadRequest?brand=TechNet gmvault gmvault-db led242@housefire:~$ cat nohup.out * ← new process start, ‘cat’ has   executed here, collect output cp: cannot create directory {grave over ( )}/media/pigc73/pigb72′: Permission denied cp: cannot create directory {grave over ( )}/media/pigc73/pigb72′: Permission denied cp: cannot access {grave over ( )}pigb72/lost+found′: Permission denied led242@housefire:~$

From the perspective of housefire, the command line activity (CLA) stream includes events dir and cat, which were executed on housefire.

By monitoring processes, the WINDOWS® client (WC) determines where command line activity (CLA) is executed.

Moreover, to determine where command line activity (CLA) is initiated, a WINDOWS® client (WC) regularly reports a list of processes, TCP/UDP connections, and new process creations performed on machines in a practical training environment. The WINDOWS® client (WC) determines where a process is initiated by analyzing ancestor processes associated with the process. If ancestor processes of a process have open network connections that tie the process to a process with an active connection on another machine, then the WINDOWS® client (WC) concludes the process was initiated on the other machine.

For instance, in the exemplary housefire command line activity (CLA) stream, the scoring server 100 obtains process information for dir on housefire, along with process list and netstat information (TCP/UDP connection info). The server 100 then determines that dir is owned by a/bin/bash process, which is owned by sshd, which has a connection to a WINDOWS® host. The WINDOWS® client (WC) monitor process is then checked, which reports that ssh.exe is on the other side of the connection and the parent process is cmd.exe, whose parent process is explorer.exe. So, dir is determined to have initiated from a ‘local’ WINDOWS® machine. To attribute remotely-initiated process starts to individual students, this process is traced back over multiple hops to a machine associated with a student.

A priority of the present invention is to make WINDOWS® client command line activity (CLA) logger activity completely transparent to users/students. The following implementations exemplify approaches for achieving this, all of which involve instrumenting cmd.exe:

1. Redirect Standard Input/Output Handles to Cmd.Exe

In accordance with the principles of the present invention, a new cmd.exe (i.e. a wrapper around the original cmd.exe and executed as a subprocess) can be created and the original cmd.exe can be left on disk with a different name or dropped to disk from the new cmd.exe. One downside of this approach is that both the original cmd.exe and the new cmd.exe wrapper appear in a process list, which may look strange to users/students. Another downside is that the approach does not preserve all cmd.exe behavior transparently, which affects command history functionality.

2. Inject Code into Cmd.Exe to Redirect Output Handles

A dll can be injected into cmd.exe at startup to replace stdout/stderr handles with pipes to the injected code. An advantage of this implementation is that a dll injected into cmd.exe does not show up in a process list. However, an injected dll may show up in a cmd.exe module list (though less visible).

In accordance with the principles of the present invention, an ‘appinit_dlls’ injection mechanism is used to inject a dll into a cmd.exe. Injection via ‘appinit_dlls’ is visible (and changeable) in the registry and serves to inject code into many unrelated processes. Code injection may alternatively be implemented via another process that is less apt to stand out.

3. Spy on Output Handles Via Driver (No Prototype)

A driver can be installed to monitor stdout/stderr handles of all cmd.exe instances or child processes. This implementation is completely transparent and thus much less detectable to users.

FIG. 8 shows an exemplary WINDOWS® client (WC) monitor process, in accordance with the principles of the present invention.

In accordance with the principles of the present invention, a WINDOWS® client (WC) monitor process 800 is implemented as a console application running on a client machine 810 during a training exercise, and can be implemented as a service. The WINDOWS® client (WC) monitor process 800 reports process information, network information, and input/output information every time a new process is started or stopped on a machine 810.

In accordance with the principles of the present invention, process events are handled via a WINDOWS® management instrumentation (WMI) event listener. However, this approach only works asynchronously and does not work well in WINDOWS® 2000 (and previous versions). It is thus possible for process information to disappear before it is processed (a race condition, so far not a real issue in practice). Limitations associated with the WINDOWS® management instrumentation (WMI) event listener implementation may be solved by implementing process events synchronously with application programming interface (API) hooks or a driver.

In accordance with the principles of the present invention, process and netstat information is reported every time a process terminates. The process and netstat (tcp/udp connection info) information is gathered programmatically and does not trigger new process events. Process and netstat information can additionally be reported periodically, or every time a state of network connections changes.

The WINDOWS® client (WC) command line activity (CLA) logger and WINDOWS® client (WC) monitor process 800 components communicate via a file system. Each cmd.exe logger writes a command line activity (CLA) stream to file (according to its personal identification device (pid)). When the WINDOWS® (WC) client monitor process 800 detects that a process has concluded, the monitor process 800 reads/reports/deletes a parent command line activity (CLA) stream file associated with the process (if the parent is cmd.exe). This implementation is not ideal because it allows for alteration by a user. Hence, an alternative method for implementing this (e.g. inter process communication (IPC)) may be employed.

The present invention also preferably hashes process start images. In particular, the inventive scoring server (aka PerformanScore) 100 tracks commands run and processes started on machines used in a practical training environment. However, students in a training course may be asked to rename tools on remote systems to make them look less suspicious. By hashing process start images, the scoring server 100 is able to identify which programs are really being executed.

The scoring server 100 preferably uses SQ Lite in a WINDOWS® client (WC) and a LINUX® client to hash images.

The inventive scoring server 100 provides training for customers desirous of practical skills assessments and has particular applicability to cyber security and cyber operations training of customers and vendors.

A future embodiment of the present invention includes support for interception of commands implemented through a graphical user interface (GUI). The current implementation does not support interception of commands implemented via a graphical user interface (GUI), but doing so is relatively straight-forward, requiring change to a hook location and the addition of an efficient filtering method (both of which can be done using conventional, known methods). While the invention has been described with reference to the exemplary embodiments thereof, those skilled in the art will be able to make various modifications to the described embodiments of the invention without departing from the true spirit and scope of the invention. 

What is claimed is:
 1. A scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment, comprising: a scoring module, executing on a physical scoring server, to evaluate cyber training performance in a network of a given student; a client application, executing on a computer, to capture user input that causes execution of a command on said computer from said given student and forward command information characterizing said command executed by said given student during said cyber training, to said physical scoring server; a scoring server web interface, executing on said physical scoring server, to download cyber training information comprising training performance objectives for evaluating said cyber training performance of said given student in said network from a physical web-based server to said physical scoring server; and a scoring server database, executing on said physical scoring server, to associate said given student with said captured command information, wherein said scoring module evaluates said cyber training performance of said given student by comparing said forwarded command information to said training performance objectives and generates a score assessing said given student's cyber training performance in for said evaluation.
 2. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein: said physical scoring server tracks a plurality of different commands executed in response to said user input by said given student, and process starts that are initiated on the computer in response to the user input, as student evaluation information.
 3. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein: said client application forwards said command information to said physical scoring server together with information attributable to said given student.
 4. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 2, wherein: said client application hashes a computer image of said process starts to identify said process.
 5. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein: a unique IP address is assigned to a computer said given student cyber trains through, enabling said scoring server to associate forwarded command information with said unique IP address.
 6. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein: said client application records communication on standard in, standard out, and standard error communication channels of computers in said network.
 7. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein said client application comprises: a command line activity (CLA) logger; and a monitor process.
 8. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 7, wherein: said client application command line activity (CLA) logger catches command line activity (CLA) by monitoring input and output of all instances of cmd.exe run on said plurality of computers in said network.
 9. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 7, wherein: said client application command line activity (CLA) logger monitors processes and ancestor processes to identify computers of the plurality of computers on which command line activity (CLA) is initiated and executed.
 10. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 7, wherein: said client application monitors process reports, process information, network information, and input and output information every time a new process is started and stopped on said computer.
 11. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein: said client application uses a pseudoterminal to record terminal input, terminal output, and communication on standard in, standard out, and standard error communication channels of computers in said network.
 12. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein said client application comprises: a psuedoterminal linked to a primary user terminal to transparently retrieve command responses.
 13. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein: said client application implements a system-hooking method to ascertain a command executed on said computer in said network.
 14. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein said command is a textual command received in response to said user input on said given computer.
 15. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein said command information characterizes one of said given computer said command was executed, a timestamp when said command was executed, network statistics (netstat) of a network said given computer is employed on and a process list (ps) associated with said given computer.
 16. The scoring server system to assess technical skills of a student undergoing evaluation in a practical training environment according to claim 1, wherein said plurality of computers comprises a physical computer, a virtual computer, or a combination thereof.
 17. A method for assessing technical skills of a student undergoing evaluation in a practical training environment, comprising: receiving, at a physical scoring server web interface, cyber training information comprising training objectives assigned to a given student; capturing, via a client application on a computer, user input that causes execution of a command on said computer from said given student during cyber training; generating command information, on said computer, to characterize said executed command; receiving, at a physical scoring server, said generated command information that characterizes said executed command; attributing, at said physical scoring server, said command information to said given student; determining, at said physical scoring server, completion of said training objectives by said given student when said attributed command information is among pre-stored commands that accomplish said training objective attributed to said given student; and generating, at said physical scoring server, a cyber-training report relating to said given student outlining said accomplished training objectives, and training objectives missed and a score based on said accomplished training objectives and said training objectives missed.
 18. The method for assessing technical skills of a student undergoing evaluation in a practical training environment according to claim 17, wherein said command information characterizes one of said computer said command was executed, a timestamp when said command was executed, network statistics (netstat) of a network said computer is employed on and a process list (ps) associated with said computer.
 19. The method for assessing technical skills of a student undergoing evaluation in a practical training environment according to claim 17, wherein said command is a textual command received in response to user input on said computer.
 20. The method for assessing technical skills of a student undergoing evaluation in a practical training environment according to claim 17, wherein: said cyber training information further comprises tasks capable of accomplishing each training objective assigned to said given student.
 21. The method for assessing technical skills of a student undergoing evaluation in a practical training environment according to claim 17, wherein: said physical scoring server tracks commands executed by said given student in response to the user input, and process starts initiated by said given student, for the cyber training evaluation.
 22. The method for assessing technical skills of a student undergoing evaluation in a practical training environment according to claim 17, wherein: each said client application hashes an image of a process start initiated in said network training environment to enable said physical scoring server to identify said process.
 23. The method for assessing technical skills of a student undergoing evaluation in a practical training environment according to claim 17, wherein: said given student is assigned a unique IP address relevant to a given computer said student is cyber training on, to enable said physical scoring server to associate said attributed command information with said IP address.
 24. The method for assessing technical skills of a student undergoing evaluation in a practical training environment according to claim 17, wherein: said client application records communication on standard in, standard out, and standard error communication channels of computers in said network training environment.
 25. The method for assessing technical skills of a student undergoing evaluation in a practical training environment according to claim 17, wherein said client application comprises: a command line activity (CLA) logger; and a monitor process.
 26. The method for assessing technical skills of a student undergoing evaluation in a practical training environment according to claim 17, wherein: said client application uses a pseudoterminal to record terminal input, terminal output, and communication on standard in, standard out, and standard error communication channels of computers in said network training environment.
 27. The method for assessing technical skills of a student undergoing evaluation in a practical training environment according to claim 17, wherein said client application comprises: a psuedoterminal linked to a primary user terminal to transparently retrieve command responses. 